﻿<!DOCTYPE html>
<html lang="zh">

<head resource>
    <include file="../inc/meta.inc" />
    <title>单点登录</title>
</head>

<body>
    <div id="vapp" v-cloak>
        <div class="toolsbar">
            <btngroup show="新增,修改,删除" ref='btngroup' @delete="deleteData" path="Modify" :disabled="loading" width="600"
                height="600" :selects='selects' idkey='SSO_ID' table="datatables"></btngroup>
        </div>
        <template>
            <el-table ref="datatables" :data="datas" tooltip-effect="dark" style="width: 100%"
                @row-dblclick="row=>$refs.btngroup.modifyrow(row)" row-key="SSO_ID">
                <el-table-column type="index" width="50">
                </el-table-column>
                <el-table-column label="名称" header-align="left" width="200">
                    <template slot-scope="scope">
                        <span v-html='showsearch(scope.row.SSO_Name,search)'></span>
                      
                    </template>
                </el-table-column>
                <el-table-column label="APPID" header-align="left" min-width="260">
                    <template slot-scope="scope">
                        <span v-html='scope.row.SSO_APPID'></span>
                          <icon @click="copytext(scope.row.SSO_APPID)" class="copy" title="复制">&#xa060</icon>
                    </template>
                </el-table-column>
                <el-table-column label="域">
                    <template slot-scope="scope">
                        <span v-html='scope.row.SSO_Domain'></span>
                    </template>
                </el-table-column>
                <el-table-column label="权限"  width="160">
                    <template slot-scope="scope">
                        <el-tag type="success" v-if="scope.row.SSO_IsAdd">创建账号</el-tag>
                        <el-tag  v-if="scope.row.SSO_IsAddSort">创建组</el-tag>
                    </template>
                </el-table-column>
                <el-table-column label="状态" width="60" align="center">
                    <template slot-scope="scope">
                        <span class="el-icon-loading" v-show="loadingid==scope.row.SSO_ID"></span>
                        <el-switch v-model="scope.row.SSO_IsUse" @change="changeUse(scope.row)"
                            v-show="loadingid!=scope.row.SSO_ID">
                        </el-switch>
                    </template>
                </el-table-column>
                <el-table-column label="操作" show-overflow-tooltip width="100" align="center">
                    <template slot-scope="scope">
                        <el-button-group v-show="loadingid!=scope.row.SSO_ID">
                            <el-link type="primary" plain icon="el-icon-edit"
                                @click='$refs.btngroup.modifyrow(scope.row)'>修改</el-link>
                            <el-popconfirm title="确定删除吗？" @confirm="$refs.btngroup.delete(scope.row.SSO_ID)">
                                <el-link type="danger" plain icon="el-icon-delete" slot="reference">删除</el-link>
                            </el-popconfirm>
                        </el-button-group>
                    </template>
                </el-table-column>
            </el-table>

        </template>
    </div>


</body>

</html>